package com.android.hedgehog.puzzles;

public class Wire {

	int wireNumber;
	int color;
	int x;
	int y;
	int srcX;
	int srcY;
	int width;
	int height;
	boolean cut = false;

	public Wire(int num, int colorNum) {

		wireNumber = colorNum;
		
		if (num < 6) {// VERTICAL

			x = 90 + ((num % 3) * 60);
			y = 100 + ((num / 3) * 310);
			srcX = 0;
			srcY = (colorNum * 70);
			width = 20;
			height = 70;
			color = colorNum;

		} else {// HORIZONTAL

			x = 0 + ((num / 10) * 250);
			y = 190 + (((num - 2) % 4) * 60);
			srcX = 0;
			srcY = (colorNum * 20);
			width = 70;
			height = 20;
			color = colorNum;

		}

	}// CONSTRUCTOR
}
